﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IsRotation
{
    class Program
    {
        static void Main(string[] args)
        {
            string source = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi eget lorem sagittis, pretium dolor eget, fermentum dolor. In sed.";
            string target = " consectetur adipiscing elit. Morbi eget lorem sagittis, pretium dolor eget, fermentum dolor. In sed.Lorem ipsum dolor sit amet,";
            
            
            bool result = source.IsRotation(target);
            bool resultOptimized = source.IsRotation(target);
            
            Console.WriteLine(result);
            Console.WriteLine(resultOptimized);

            Console.Read();
        }
    }
}
